package example.simple_mindmap.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class ReplyDTO {
    //评论id
    private Long id;
    //所属文章id
    private Long mid;
    //发生用户id
    private Long pid;
    //接收用户id
    private Long rid;
    //头像
    private String avatar="./image/avatar01.jpeg";
    //昵称
    private String name;
    //评论正文
    private String content;
    //评论下的评论
    private String reply2;
    //点赞数
    private Integer like;
    //创建时间
    @JsonFormat( pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
}
